import axios from 'utils/axios.js'

export function getArticleList (data, query) {
  return axios.post(`/article/anon/list?page=${query.page}&limit=${query.limit}`, data)
}
export function getArticleDetail (id) {
  return axios.get(`/article/${id}`)
}
export function addArticle (data) {
  return axios.post(`/article/`, data)
}
export function delArticle (id) {
  return axios.delete(`/article/${id}`)
}
export function updateArticle (data) {
  return axios.put(`/article`, data)
}
